package com.wms.entity;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.validation.annotation.Validated;

import java.util.List;

@ApiModel("仓库")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Validated
//@JsonInclude(JsonInclude.Include.NON_NULL) // 只序列化非null的属性
public class Store {
    @ApiModelProperty(value = "仓库库区ID",notes = "",hidden = true)
    private Integer id ;
    /** 仓库代码 */
    @ApiModelProperty(value= "仓库代码",notes = "")
    private String code ;
    /** 排序 */
    @ApiModelProperty(value = "排序",notes = "")
    private int sorts ;
    /** 仓库名称 */
    @ApiModelProperty(value = "仓库名称",notes = "")
    private String name ;
    /** 所在省 */
    @ApiModelProperty(value = "所在省",notes = "")
    private String province ;
    /** 所在市 */
    @ApiModelProperty(value = "所在市",notes = "")
    private String city ;
    /** 所在区 */
    @ApiModelProperty(value = "所在区",notes = "")
    private String area ;
    /** 详细地址 */
    @ApiModelProperty(value = "详细地址",notes = "")
    private String address ;
    /** 实体仓库;1 实体仓库  2 虚拟仓 */
    @ApiModelProperty(value = "实体仓库",notes = "1 实体仓库  2 虚拟仓")
    private int isentity ;
    /** 状态;0 停用  1 启用 */
    @ApiModelProperty(value = "状态",notes = "0 停用  1 启用")
    private int status ;

    @ApiModelProperty(value = "父仓库ID",notes="没有上级时为0",example = "0")
    private Integer fuId;


    List<Store> storeslist;
}
